/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Feb 7, 2010 12:02:54 AM $
 *
 * Author: Eric Yang
 * Date  : Feb 7, 2010 12:02:54 AM
 *
 */
package com.gooex.web.action.gbuy.order;

import java.util.List;

import com.gooex.domain.base.Order;
import com.gooex.domain.base.OrderVendor;
import com.gooex.domain.base.emun.OrderStatus;

/**
 * @author Eric Yang
 * @version 1.0
 */
public class ListOrderAction extends BaseOrderAction {

	List<Order> orders;

	List<OrderVendor> orderVendors;

	public String getVendOrders() throws Exception {
		orders = orderManager.getVendedOrders(getCurrentUser(), page);
		return SUCCESS;
	}

	public String getConfirmedOrders() throws Exception {
		orders = orderManager.getOrders(OrderStatus.CONFIRMED, page);
		return SUCCESS;
	}

	public List<OrderVendor> getOrderVendors() {
		return orderVendors;
	}

	public List<Order> getOrders() {
		return orders;
	}

}
